package com.xiaotu.server.service.maoyan;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.xiaotu.server.common.db.Page;
import com.xiaotu.server.model.maoyan.MovieTagModel;
import com.xiaotu.server.service.BaseService;

/***
 * 猫眼评分业务层
 * @author Administrator
 *
 */
@Service
public class MaoYanMovieScoreService extends BaseService{
	
	@Override
	protected String getKey() {
		return "MaoYanMovieScoreMapper";
	}
	
	public List<MovieTagModel> queryAllTagsByName(List<MovieTagModel> tagList) {
		if(tagList.size()==0){
			return new ArrayList<MovieTagModel>();
		}
		return this.getList("queryAllTagsByName", tagList);
	}
	//批量增加标签
	public void saveBatch(List<MovieTagModel> tagList) {
		this.update("batchAdd", tagList);
	}
}
